<?php /* Smarty version 2.6.18, created on 2008-06-13 22:57:03
         compiled from admin/Websetup_usergroupband_list.html */ ?>
<h1>『 <?php echo $this->_tpl_vars['title']; ?>
 』</h1>
<form action="?controller=admin_usergroup&action=saveband" method="POST">
<div id="thisuginfo">
	<h1>
	<select id="select_usergroup" name="user_group_id">
	<option>请选择用户组</option>
	<?php $_from = $this->_tpl_vars['ugList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['usergroup']):
?>
		<option value="<?php echo $this->_tpl_vars['usergroup']['user_group_id']; ?>
" ><?php echo $this->_tpl_vars['usergroup']['levelstr']; ?>
 <?php echo $this->_tpl_vars['usergroup']['group_name']; ?>
</option>
	<?php endforeach; endif; unset($_from); ?>
	</select>
	通过继承获得的权限
	&nbsp;<input id="savebutton" type="submit" value="保存该组的权限" />
	</h1>
	<table>
		<tr>
			<td><h3 class="green">许可的角色</h3><ul class="allow_roles"></ul></td>
			<td><h3 class="red">拒绝的角色</h3><ul class="deny_roles"></ul></td>
		</tr>
		<tr>
			<td><h3 class="green">许可的权限</h3><ul class="allow_permissions"></ul></td>
			<td><h3 class="red">拒绝的权限</h3><ul class="deny_permissions"></ul></td>
		</tr>
	</table>
	
	
	
	
	
</div>

<div id="allRoles">
<h1>全部角色列表</h1>

<ul>
<?php $_from = $this->_tpl_vars['rolesList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['role']):
?>
	
	<li role_id="<?php echo $this->_tpl_vars['role']['role_id']; ?>
">
		<input class="ckbox" name="roles[<?php echo $this->_tpl_vars['role']['role_id']; ?>
]" type="checkbox" role_id="<?php echo $this->_tpl_vars['role']['role_id']; ?>
" />
		<select name="is_include[<?php echo $this->_tpl_vars['role']['role_id']; ?>
]">
			<option value="1">允许</option>
			<option value="0">拒绝</option>
		</select>
		<span role_id="<?php echo $this->_tpl_vars['role']['role_id']; ?>
">
		&nbsp;&nbsp;<?php echo $this->_tpl_vars['role']['description']; ?>
&nbsp;(<?php echo $this->_tpl_vars['role']['rolename']; ?>
)
		</span>
	</li>
	
<?php endforeach; endif; unset($_from); ?>
</ul>
</div>

<div id="allPermissions">
<h1>全部权限列表</h1>
<?php $_from = $this->_tpl_vars['permissionsList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['onePerGroup']):
?>
	
	<h1><?php echo $this->_tpl_vars['onePerGroup']['permission_group_name']; ?>
 (<?php echo $this->_tpl_vars['onePerGroup']['aliasname']; ?>
)</h1>
	
	<ul>
	<?php $_from = $this->_tpl_vars['onePerGroup']['permissions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['permission']):
?>
		
		<li permission_id="<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
">
			<input class="ckbox" name="permissions[<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
]" type="checkbox" permission_id="<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
" group_id="<?php echo $this->_tpl_vars['onePerGroup']['permission_group_id']; ?>
" />
			<select name="is_allow[<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
]">
				<option value="1">允许</option>
				<option value="0">拒绝</option>
			</select>
			<span permission_id="<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
">
			&nbsp;&nbsp;<?php echo $this->_tpl_vars['permission']['pername']; ?>
 (<?php echo $this->_tpl_vars['onePerGroup']['aliasname']; ?>
)
			</span>
		</li>
		
	<?php endforeach; endif; unset($_from); ?>
	</ul>

<?php endforeach; endif; unset($_from); ?>
</div>
</form>